package com.hsylient.resource.config;

import com.hsylient.resource.entity.Student;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ConditionBeanEntity {


    @Bean
    @ConditionalOnClass(name = "org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration")
    public Student student() {
        return new Student();
    }


}
